# Contributor: Patrycja Rosa <alpine@ptrcnull.me>
# Maintainer: Patrycja Rosa <alpine@ptrcnull.me>
pkgname=video-trimmer
pkgver=0.8.2
pkgrel=0
pkgdesc="Trim videos quickly"
url="https://gitlab.gnome.org/YaLTeR/video-trimmer"
# s390x, riscv64: blocked by blueprint-compiler
arch="all !s390x !riscv64"
license="GPL-3.0-or-later"
depends="gst-libav"
makedepends="
	blueprint-compiler
	cargo
	desktop-file-utils
	gtk4.0-dev
	libadwaita-dev
	meson
	"
subpackages="$pkgname-lang"
source="https://gitlab.gnome.org/YaLTeR/video-trimmer/-/archive/v$pkgver/video-trimmer-v$pkgver.tar.gz"
builddir="$srcdir/$pkgname-v$pkgver"


build() {
	abuild-meson . output
	meson compile -C output
}

check() {
	meson test --no-rebuild --print-errorlogs -C output
}

package() {
	DESTDIR="$pkgdir" meson install --no-rebuild -C output
}

sha512sums="
4d46842b9c846b5724b7e685b2eebfc8877d97c96849d931270affa27ee0dc1f69b72a34e44dcb68d6179f4fe3a8cee49b0f872ddcc3da5f02717daec8c993f3  video-trimmer-v0.8.2.tar.gz
"
